<!--
 * @Author: your name
 * @Date: 2021-10-18 14:42:43
 * @LastEditTime: 2021-10-18 14:58:05
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /a1902-a-group/admin_pc/src/component/MySetUp.vue
-->
<template>
  <div>
      <span>setup</span>
      <button @click="hanldeClick">跳</button>
  </div>
</template>

<script>
import {h} from 'vue';
export default {
    // props: ['msg'],
    // props 就是父亲传递过来的参数
    setup(props, context) {
        // let {msg} = props; xxxx
        //  当前的props 不能够解构对象 ，如果结构了就没有双向绑定的功能'
        let {slots, emit, attrs} = context;
        // console.log(slots.default())
        // return () => h('div', {}, slots.default())
        // console.log(attrs)

        const hanldeClick = () => {
            emit('jump', 123)
        }

        return {
            hanldeClick
        }
    }
}
</script>

<style>

</style>